/*
 Navicat Premium Data Transfer

 Source Server         : 阿里云sqlserver
 Source Server Type    : SQL Server
 Source Server Version : 13005026
 Source Host           : 121.40.101.29:1433
 Source Catalog        : falao_test
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 13005026
 File Encoding         : 65001

 Date: 31/12/2019 16:49:18
*/


-- ----------------------------
-- Table structure for bd_nianjia
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[bd_nianjia]') AND type IN ('U'))
	DROP TABLE [dbo].[bd_nianjia]
GO

CREATE TABLE [dbo].[bd_nianjia] (
  [user_serial] varchar(255) COLLATE Chinese_PRC_CI_AS  NOT NULL,
  [fdnjts] int DEFAULT ((0)) NULL,
  [sdjqts] int DEFAULT ((0)) NULL,
  [txts] int DEFAULT ((0)) NULL,
  [flnjts] int DEFAULT ((0)) NULL,
  [lastfdnj] int DEFAULT ((0)) NULL,
  [lastflnj] int DEFAULT ((0)) NULL,
  [txsx] int DEFAULT ((0)) NULL
)
GO

ALTER TABLE [dbo].[bd_nianjia] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'人员编号',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'user_serial'
GO

EXEC sp_addextendedproperty
'MS_Description', N'法定年假',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'fdnjts'
GO

EXEC sp_addextendedproperty
'MS_Description', N'锁定假期',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'sdjqts'
GO

EXEC sp_addextendedproperty
'MS_Description', N'调休假期',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'txts'
GO

EXEC sp_addextendedproperty
'MS_Description', N'福利年假',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'flnjts'
GO

EXEC sp_addextendedproperty
'MS_Description', N'上年法定年假结余',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'lastfdnj'
GO

EXEC sp_addextendedproperty
'MS_Description', N'上年福利年假结余',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'lastflnj'
GO

EXEC sp_addextendedproperty
'MS_Description', N'调休上限',
'SCHEMA', N'dbo',
'TABLE', N'bd_nianjia',
'COLUMN', N'txsx'
GO


-- ----------------------------
-- Primary Key structure for table bd_nianjia
-- ----------------------------
ALTER TABLE [dbo].[bd_nianjia] ADD CONSTRAINT [PK__bd_nianj__3243F8AF6CB5133A] PRIMARY KEY CLUSTERED ([user_serial])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

